package week3;

import java.util.Scanner;

public class q1 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("你的身高是：");
        double height = sc.nextDouble();
        System.out.println("你的体重是：");
        double weight = sc.nextDouble();
        double bmi = weight/ (height * height);
        System.out.println("你的bmi值为：");
        if(bmi<18.5) {
            System.out.println("偏瘦");
        }else if(bmi<=23.9) {
            System.out.println("正常");
        }else if (bmi<=27.9) {
            System.out.println("偏胖");
        }else{
            System.out.println("超重");
        }
        }
    }

